package forms

import "github.com/cy77cc/hioshop/models"

type AppInfo struct {
	Channel      []models.Category `json:"channel"`
	Banner       []models.Ad       `json:"banner"`
	Notice       []string          `json:"notice"`
	CategoryList []Category        `json:"categoryList"`
	CartCount    int               `json:"cartCount"`
}

type Channel struct {
	Id        int    `json:"id"`
	IconUrl   string `json:"icon_url"`
	Name      string `json:"name"`
	SortOrder int    `json:"sort_order"`
}

type Category struct {
	Id        uint           `json:"id"`
	Name      string         `json:"name"`
	Banner    string         `json:"banner"`
	Height    int            `json:"height"`
	GoodsList []models.Goods `json:"goodsList"`
}
